import { Define, EntityObjectFactory } from 'tiny-entity2';
const EntityObjectType = EntityObjectFactory.GetEntityObjectType(process.env.dataBaseType || 'mysql');
@Define.Table({ TableName: "page" })
export class Page extends EntityObjectType<Page>{
    @Define.PrimaryKey({
        DataLength: 32
    })
    id: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    name: string;

    /**
     * 页面唯一可读Id
     *
     * @type {string}
     * @memberof Page
     */
    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    viewId: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
        IsIndex: true,
        NotAllowNULL: true
    })
    flowNodeId: string;

    /**
     * 页面布局类型
     *
     * @type {string}
     * @memberof Page
     */
    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    type: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    permitId: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    permitName: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR,
    })
    permitGroupName: string;
}